package com.ruifu.pls.entity;// default package

import com.ruifu.pls.model.ansReverseReturnAdd.GLAsnReverseReturnAdd;
import com.ruifu.pls.model.asnAddConfirm.GAsnHeader;
import com.ruifu.pls.model.asnReturnConform.GLAsnReturnConform;
import com.ruifu.pls.model.asnReverseAdd.GLDataDetail;
import com.ruifu.pls.model.statusUpdate.GLAsnHerader;

import javax.persistence.*;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * DocAsnHeader entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "DOC_ASN_HEADER")
public class DocAsnHeader implements java.io.Serializable {

	// Fields

	private String asnno;
	private Date asncreationtime;
	private String carrierid;
	private String asnreference1;
	private String carriername;
	private Date expectedarrivetime1;
	private Date expectedarrivetime2;
	private String carrieraddress1;	
	private String carrieraddress3;
	private String asnreference3;
	private String carrieraddress2;
	private String carrieraddress4;
	private String door;
	private String carriercity;
	private String carrierprovince;
	private String carrierzip;
	private String asnreference4;
	private String countryoforigin;
	private String countryofdestination;
	private String deliveryvehicleno;
	private String carriercountry;
	private String asnreference5;
	private String placeofloading;
	private String placeofdischarge;
	private String placeofdelivery;
	private String paymentterms;
	private String paymenttermsdescr;
	private String userdefine5;
	private String asnstatus;
	private String userdefine1;
	private String userdefine2;
	private String userdefine3;
	private String userdefine4;
	private String asntype;
	private String asnreference2;
	private Date addtime;
	private String pono;
	private String addwho;
	private Date edittime;
	private String editwho;
	private String deliveryterms;
	private String notes;
	private String deliverytermsdescr;
	private String customerid;
	private String createsource;
	private String bytraceFlag;
	private String supplierid;
	private String reserveFlag;
	private Date edisendtime;
	private Double receiveid;
	private String supplierName;
	private String supplierAddress1;
	private String supplierAddress2;
	private String supplierAddress3;
	private String supplierAddress4;
	private String supplierCity;
	private String supplierProvince;
	private String supplierZip;
	private String supplierCountry;
	private String supplierTel1;
	private String supplierFax;
	private String supplierTel2;
	private String issuepartyid;
	private String issuepartyname;
	private String IAddress1;
	private String IAddress2;
	private String IAddress3;
	private String IAddress4;
	private String ICity;
	private String IProvince;
	private String ICountry;
	private String IZip;
	private String deliveryvehicletype;
	private Date lastreceivingtime;
	private String edisendflag;
	private String billingid;
	private String billingname;
	private String BAddress1;
	private String BAddress2;
	private String BAddress3;
	private String BAddress4;
	private String BCity;
	private String BProvince;
	private String BCountry;
	private String BZip;
	private String billingclassGroup;
	private String driver;
	private String carriercontact;
	private String carriertel1;
	private String supplierContact;
	private String supplierMail;
	private String carriertel2;
	private String carrierfax;
	private String carriermail;
	private Date edisendtime2;
	private Date edisendtime3;
	private Date edisendtime4;
	private Date edisendtime5;
	private String BContact;
	private String BMail;
	private String BFax;
	private String BTel1;
	private String BTel2;
	private String IContact;
	private String IMail;
	private String IFax;
	private String ITel1;
	private String ITel2;
	private String HEdi01;
	private String HEdi02;
	private String HEdi03;
	private String HEdi04;
	private String HEdi05;
	private String HEdi06;
	private String HEdi07;
	private String HEdi08;
	private Double HEdi09;
	private Double HEdi10;
	private String userdefine6;
	private String asnPrintFlag;
	private String qcstatus;
	private String returnPrintFlag;
	private String warehouseid;
	private String priority;
	private String zonegroup;
	private String releasestatus;
	private String packmaterialconsume;
	private Date medicalxmltime;
	private String serialnocatch;
	private String followup;
	private String userdefinea;
	private String userdefineb;
	private String archiveflag;
	private Date actualarrivetime;
	private String serialnoimportflag;
	private String userdefine8;
	private Date userdefine7;

	SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	//入库确认回传
	public GAsnHeader gAsnHeader = new GAsnHeader();

	//退货入库回传
	public GLAsnReturnConform  glAsnReturnConform = new GLAsnReturnConform();


	//入库逆向新增
	public GLDataDetail glDataDetail = new GLDataDetail();

	public GLAsnReverseReturnAdd glAsnReverseReturnAdd = new  GLAsnReverseReturnAdd();
	public GLAsnHerader glAsnHerader = new GLAsnHerader();


	// Constructors

	/** default constructor */
	public DocAsnHeader() {
	}

	/** minimal constructor */
	public DocAsnHeader(String asnno, Date asncreationtime, String asnstatus,
			Date addtime, Date edittime, String customerid, String reserveFlag,
			String edisendflag, String archiveflag) {
		this.asnno = asnno;
		this.asncreationtime = asncreationtime;
		this.asnstatus = asnstatus;
		this.addtime = addtime;
		this.edittime = edittime;
		this.customerid = customerid;
		this.reserveFlag = reserveFlag;
		this.edisendflag = edisendflag;
		this.archiveflag = archiveflag;
	}

	/** full constructor */
	public DocAsnHeader(String asnno, Date asncreationtime, String carrierid,
			String asnreference1, String carriername, Date expectedarrivetime1,
			Date expectedarrivetime2, String carrieraddress1,
			String carrieraddress3, String asnreference3,
			String carrieraddress2, String carrieraddress4, String door,
			String carriercity, String carrierprovince, String carrierzip,
			String asnreference4, String countryoforigin,
			String countryofdestination, String deliveryvehicleno,
			String carriercountry, String asnreference5, String placeofloading,
			String placeofdischarge, String placeofdelivery,
			String paymentterms, String paymenttermsdescr, String userdefine5,
			String asnstatus, String userdefine1, String userdefine2,
			String userdefine3, String userdefine4, String asntype,
			String asnreference2, Date addtime, String pono, String addwho,
			Date edittime, String editwho, String deliveryterms, String notes,
			String deliverytermsdescr, String customerid, String createsource,
			String bytraceFlag, String supplierid, String reserveFlag,
			Date edisendtime, Double receiveid, String supplierName,
			String supplierAddress1, String supplierAddress2,
			String supplierAddress3, String supplierAddress4,
			String supplierCity, String supplierProvince, String supplierZip,
			String supplierCountry, String supplierTel1, String supplierFax,
			String supplierTel2, String issuepartyid, String issuepartyname,
			String IAddress1, String IAddress2, String IAddress3,
			String IAddress4, String ICity, String IProvince, String ICountry,
			String IZip, String deliveryvehicletype, Date lastreceivingtime,
			String edisendflag, String billingid, String billingname,
			String BAddress1, String BAddress2, String BAddress3,
			String BAddress4, String BCity, String BProvince, String BCountry,
			String BZip, String billingclassGroup, String driver,
			String carriercontact, String carriertel1, String supplierContact,
			String supplierMail, String carriertel2, String carrierfax,
			String carriermail, Date edisendtime2, Date edisendtime3,
			Date edisendtime4, Date edisendtime5, String BContact,
			String BMail, String BFax, String BTel1, String BTel2,
			String IContact, String IMail, String IFax, String ITel1,
			String ITel2, String HEdi01, String HEdi02, String HEdi03,
			String HEdi04, String HEdi05, String HEdi06, String HEdi07,
			String HEdi08, Double HEdi09, Double HEdi10, String userdefine6,
			String asnPrintFlag, String qcstatus, String returnPrintFlag,
			String warehouseid, String priority, String zonegroup,
			String releasestatus, String packmaterialconsume,
			Date medicalxmltime, String serialnocatch, String followup,
			String userdefinea, String userdefineb, String archiveflag,
			Date actualarrivetime, String serialnoimportflag,
			String userdefine8, Date userdefine7) {
		this.asnno = asnno;
		this.asncreationtime = asncreationtime;
		this.carrierid = carrierid;
		this.asnreference1 = asnreference1;
		this.carriername = carriername;
		this.expectedarrivetime1 = expectedarrivetime1;
		this.expectedarrivetime2 = expectedarrivetime2;
		this.carrieraddress1 = carrieraddress1;
		this.carrieraddress3 = carrieraddress3;
		this.asnreference3 = asnreference3;
		this.carrieraddress2 = carrieraddress2;
		this.carrieraddress4 = carrieraddress4;
		this.door = door;
		this.carriercity = carriercity;
		this.carrierprovince = carrierprovince;
		this.carrierzip = carrierzip;
		this.asnreference4 = asnreference4;
		this.countryoforigin = countryoforigin;
		this.countryofdestination = countryofdestination;
		this.deliveryvehicleno = deliveryvehicleno;
		this.carriercountry = carriercountry;
		this.asnreference5 = asnreference5;
		this.placeofloading = placeofloading;
		this.placeofdischarge = placeofdischarge;
		this.placeofdelivery = placeofdelivery;
		this.paymentterms = paymentterms;
		this.paymenttermsdescr = paymenttermsdescr;
		this.userdefine5 = userdefine5;
		this.asnstatus = asnstatus;
		this.userdefine1 = userdefine1;
		this.userdefine2 = userdefine2;
		this.userdefine3 = userdefine3;
		this.userdefine4 = userdefine4;
		this.asntype = asntype;
		this.asnreference2 = asnreference2;
		this.addtime = addtime;
		this.pono = pono;
		this.addwho = addwho;
		this.edittime = edittime;
		this.editwho = editwho;
		this.deliveryterms = deliveryterms;
		this.notes = notes;
		this.deliverytermsdescr = deliverytermsdescr;
		this.customerid = customerid;
		this.createsource = createsource;
		this.bytraceFlag = bytraceFlag;
		this.supplierid = supplierid;
		this.reserveFlag = reserveFlag;
		this.edisendtime = edisendtime;
		this.receiveid = receiveid;
		this.supplierName = supplierName;
		this.supplierAddress1 = supplierAddress1;
		this.supplierAddress2 = supplierAddress2;
		this.supplierAddress3 = supplierAddress3;
		this.supplierAddress4 = supplierAddress4;
		this.supplierCity = supplierCity;
		this.supplierProvince = supplierProvince;
		this.supplierZip = supplierZip;
		this.supplierCountry = supplierCountry;
		this.supplierTel1 = supplierTel1;
		this.supplierFax = supplierFax;
		this.supplierTel2 = supplierTel2;
		this.issuepartyid = issuepartyid;
		this.issuepartyname = issuepartyname;
		this.IAddress1 = IAddress1;
		this.IAddress2 = IAddress2;
		this.IAddress3 = IAddress3;
		this.IAddress4 = IAddress4;
		this.ICity = ICity;
		this.IProvince = IProvince;
		this.ICountry = ICountry;
		this.IZip = IZip;
		this.deliveryvehicletype = deliveryvehicletype;
		this.lastreceivingtime = lastreceivingtime;
		this.edisendflag = edisendflag;
		this.billingid = billingid;
		this.billingname = billingname;
		this.BAddress1 = BAddress1;
		this.BAddress2 = BAddress2;
		this.BAddress3 = BAddress3;
		this.BAddress4 = BAddress4;
		this.BCity = BCity;
		this.BProvince = BProvince;
		this.BCountry = BCountry;
		this.BZip = BZip;
		this.billingclassGroup = billingclassGroup;
		this.driver = driver;
		this.carriercontact = carriercontact;
		this.carriertel1 = carriertel1;
		this.supplierContact = supplierContact;
		this.supplierMail = supplierMail;
		this.carriertel2 = carriertel2;
		this.carrierfax = carrierfax;
		this.carriermail = carriermail;
		this.edisendtime2 = edisendtime2;
		this.edisendtime3 = edisendtime3;
		this.edisendtime4 = edisendtime4;
		this.edisendtime5 = edisendtime5;
		this.BContact = BContact;
		this.BMail = BMail;
		this.BFax = BFax;
		this.BTel1 = BTel1;
		this.BTel2 = BTel2;
		this.IContact = IContact;
		this.IMail = IMail;
		this.IFax = IFax;
		this.ITel1 = ITel1;
		this.ITel2 = ITel2;
		this.HEdi01 = HEdi01;
		this.HEdi02 = HEdi02;
		this.HEdi03 = HEdi03;
		this.HEdi04 = HEdi04;
		this.HEdi05 = HEdi05;
		this.HEdi06 = HEdi06;
		this.HEdi07 = HEdi07;
		this.HEdi08 = HEdi08;
		this.HEdi09 = HEdi09;
		this.HEdi10 = HEdi10;
		this.userdefine6 = userdefine6;
		this.asnPrintFlag = asnPrintFlag;
		this.qcstatus = qcstatus;
		this.returnPrintFlag = returnPrintFlag;
		this.warehouseid = warehouseid;
		this.priority = priority;
		this.zonegroup = zonegroup;
		this.releasestatus = releasestatus;
		this.packmaterialconsume = packmaterialconsume;
		this.medicalxmltime = medicalxmltime;
		this.serialnocatch = serialnocatch;
		this.followup = followup;
		this.userdefinea = userdefinea;
		this.userdefineb = userdefineb;
		this.archiveflag = archiveflag;
		this.actualarrivetime = actualarrivetime;
		this.serialnoimportflag = serialnoimportflag;
		this.userdefine8 = userdefine8;
		this.userdefine7 = userdefine7;
	}

	// Property accessors
	@Id
	@Column(name = "ASNNO", unique = true, nullable = false, length = 20)
	public String getAsnno() {
		return this.asnno;
	}

	public void setAsnno(String asnno) {
		this.asnno = asnno;
		this.gAsnHeader.setEntryOrderWMS(this.asnno);
		this.glDataDetail.setOrderCodeWMS(this.asnno);
		this.glAsnReturnConform.setReturnOrderId(this.asnno);
		this.glAsnHerader.setOrderCodeWMS(this.asnno);

	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ASNCREATIONTIME", nullable = false, length = 7)
	public Date getAsncreationtime() {
		return this.asncreationtime;
	}

	public void setAsncreationtime(Date asncreationtime) {
		this.asncreationtime = asncreationtime;

	}

	@Column(name = "CARRIERID", length = 30)
	public String getCarrierid() {
		return this.carrierid;
	}

	public void setCarrierid(String carrierid) {
		this.carrierid = carrierid;
	}

	@Column(name = "ASNREFERENCE1", length = 50)
	public String getAsnreference1() {
		return this.asnreference1;
	}

	public void setAsnreference1(String asnreference1) {
		this.asnreference1 = asnreference1;
		this.gAsnHeader.setEntryOrderCode(this.asnreference1);
		this.glDataDetail.setEntryOrderCode(this.asnreference1);
		this.glAsnReturnConform.setReturnOrderCode(this.asnreference1);
		this.glAsnReverseReturnAdd.setEntryOrderCode(this.asnreference1);
		this.glAsnHerader.setOrderCode(this.asnreference1);
	}

	@Column(name = "CARRIERNAME", length = 400)
	public String getCarriername() {
		return this.carriername;
	}

	public void setCarriername(String carriername) {
		this.carriername = carriername;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EXPECTEDARRIVETIME1", length = 7)
	public Date getExpectedarrivetime1() {
		return this.expectedarrivetime1;
	}

	public void setExpectedarrivetime1(Date expectedarrivetime1) {
		this.expectedarrivetime1 = expectedarrivetime1;
		if(expectedarrivetime1==null)
		{
			this.glDataDetail.setExpectStartTime(dateFormat.format(new Date()));
		}
		else
		{
			this.glDataDetail.setExpectStartTime(dateFormat.format(expectedarrivetime1));
		}



	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EXPECTEDARRIVETIME2", length = 7)
	public Date getExpectedarrivetime2() {
		return this.expectedarrivetime2;
	}

	public void setExpectedarrivetime2(Date expectedarrivetime2) {
		this.expectedarrivetime2 = expectedarrivetime2;

		if(expectedarrivetime2 == null)
		{
			this.glDataDetail.setExpectEndTime(dateFormat.format(new Date()));
		}
		else
		{
			this.glDataDetail.setExpectEndTime(dateFormat.format(expectedarrivetime2));
		}


	}

	@Column(name = "CARRIERADDRESS1", length = 400)
	public String getCarrieraddress1() {
		return this.carrieraddress1;
	}

	public void setCarrieraddress1(String carrieraddress1) {
		this.carrieraddress1 = carrieraddress1;
	}

	@Column(name = "CARRIERADDRESS3", length = 200)
	public String getCarrieraddress3() {
		return this.carrieraddress3;
	}

	public void setCarrieraddress3(String carrieraddress3) {
		this.carrieraddress3 = carrieraddress3;
	}

	@Column(name = "ASNREFERENCE3", length = 50)
	public String getAsnreference3() {
		return this.asnreference3;
	}

	public void setAsnreference3(String asnreference3) {
		this.asnreference3 = asnreference3;
	}

	@Column(name = "CARRIERADDRESS2", length = 200)
	public String getCarrieraddress2() {
		return this.carrieraddress2;
	}

	public void setCarrieraddress2(String carrieraddress2) {
		this.carrieraddress2 = carrieraddress2;
	}

	@Column(name = "CARRIERADDRESS4", length = 200)
	public String getCarrieraddress4() {
		return this.carrieraddress4;
	}

	public void setCarrieraddress4(String carrieraddress4) {
		this.carrieraddress4 = carrieraddress4;
	}

	@Column(name = "DOOR", length = 50)
	public String getDoor() {
		return this.door;
	}

	public void setDoor(String door) {
		this.door = door;
	}

	@Column(name = "CARRIERCITY", length = 50)
	public String getCarriercity() {
		return this.carriercity;
	}

	public void setCarriercity(String carriercity) {
		this.carriercity = carriercity;
	}

	@Column(name = "CARRIERPROVINCE", length = 50)
	public String getCarrierprovince() {
		return this.carrierprovince;
	}

	public void setCarrierprovince(String carrierprovince) {
		this.carrierprovince = carrierprovince;
	}

	@Column(name = "CARRIERZIP", length = 10)
	public String getCarrierzip() {
		return this.carrierzip;
	}

	public void setCarrierzip(String carrierzip) {
		this.carrierzip = carrierzip;
	}

	@Column(name = "ASNREFERENCE4", length = 50)
	public String getAsnreference4() {
		return this.asnreference4;
	}

	public void setAsnreference4(String asnreference4) {
		this.asnreference4 = asnreference4;
	}

	@Column(name = "COUNTRYOFORIGIN", length = 2)
	public String getCountryoforigin() {
		return this.countryoforigin;
	}

	public void setCountryoforigin(String countryoforigin) {
		this.countryoforigin = countryoforigin;
	}

	@Column(name = "COUNTRYOFDESTINATION", length = 2)
	public String getCountryofdestination() {
		return this.countryofdestination;
	}

	public void setCountryofdestination(String countryofdestination) {
		this.countryofdestination = countryofdestination;
	}

	@Column(name = "DELIVERYVEHICLENO", length = 20)
	public String getDeliveryvehicleno() {
		return this.deliveryvehicleno;
	}

	public void setDeliveryvehicleno(String deliveryvehicleno) {
		this.deliveryvehicleno = deliveryvehicleno;
	}

	@Column(name = "CARRIERCOUNTRY", length = 20)
	public String getCarriercountry() {
		return this.carriercountry;
	}

	public void setCarriercountry(String carriercountry) {
		this.carriercountry = carriercountry;
	}

	@Column(name = "ASNREFERENCE5", length = 50)
	public String getAsnreference5() {
		return this.asnreference5;
	}

	public void setAsnreference5(String asnreference5) {
		this.asnreference5 = asnreference5;
	}

	@Column(name = "PLACEOFLOADING", length = 60)
	public String getPlaceofloading() {
		return this.placeofloading;
	}

	public void setPlaceofloading(String placeofloading) {
		this.placeofloading = placeofloading;
	}

	@Column(name = "PLACEOFDISCHARGE", length = 60)
	public String getPlaceofdischarge() {
		return this.placeofdischarge;
	}

	public void setPlaceofdischarge(String placeofdischarge) {
		this.placeofdischarge = placeofdischarge;
	}

	@Column(name = "PLACEOFDELIVERY", length = 60)
	public String getPlaceofdelivery() {
		return this.placeofdelivery;
	}

	public void setPlaceofdelivery(String placeofdelivery) {
		this.placeofdelivery = placeofdelivery;
	}

	@Column(name = "PAYMENTTERMS", length = 4)
	public String getPaymentterms() {
		return this.paymentterms;
	}

	public void setPaymentterms(String paymentterms) {
		this.paymentterms = paymentterms;
	}

	@Column(name = "PAYMENTTERMSDESCR", length = 200)
	public String getPaymenttermsdescr() {
		return this.paymenttermsdescr;
	}

	public void setPaymenttermsdescr(String paymenttermsdescr) {
		this.paymenttermsdescr = paymenttermsdescr;
	}

	@Column(name = "USERDEFINE5", length = 400)
	public String getUserdefine5() {
		return this.userdefine5;
	}

	public void setUserdefine5(String userdefine5) {
		this.userdefine5 = userdefine5;
	}

	@Column(name = "ASNSTATUS", nullable = false, length = 2)
	public String getAsnstatus() {
		return this.asnstatus;
	}

	public void setAsnstatus(String asnstatus) {
		this.asnstatus = asnstatus;
		if(this.asnstatus.equals("00"))
		{
			this.gAsnHeader.setStatus("ACCEPT");
			this.glAsnHerader.setCurrentStatus("ACCEPT");
		}
/*		else if(this.asnstatus .equals( "40")){
			this.glAsnHerader.setCurrentStatus("FULFILLED");
		}*/
		else if (this.asnstatus .equals( "90"))
		{
			this.gAsnHeader.setStatus("CANCELED");
			this.glAsnHerader.setCurrentStatus("CANCELED");
		}
		else if (this.asnstatus.equals("99"))
		{
			this.gAsnHeader.setStatus("FULFILLED");
		}
	}

	@Column(name = "USERDEFINE1", length = 400)
	public String getUserdefine1() {
		return this.userdefine1;
	}

	public void setUserdefine1(String userdefine1) {
		this.userdefine1 = userdefine1;
	}

	@Column(name = "USERDEFINE2", length = 400)
	public String getUserdefine2() {
		return this.userdefine2;
	}

	public void setUserdefine2(String userdefine2) {
		this.userdefine2 = userdefine2;
	}

	@Column(name = "USERDEFINE3", length = 400)
	public String getUserdefine3() {
		return this.userdefine3;
	}

	public void setUserdefine3(String userdefine3) {
		this.userdefine3 = userdefine3;
	}

	@Column(name = "USERDEFINE4", length = 400)
	public String getUserdefine4() {
		return this.userdefine4;
	}

	public void setUserdefine4(String userdefine4) {
		this.userdefine4 = userdefine4;
	}

	@Column(name = "ASNTYPE", length = 20)
	public String getAsntype() {
		return this.asntype;
	}

	public void setAsntype(String asntype) {
		this.asntype = asntype;
		this.gAsnHeader.setEntryOrderType(this.asntype);
		this.glDataDetail.setOrderType(this.asntype);
		this.glAsnHerader.setOrderType(this.asntype);
		this.glAsnReturnConform.setOrderType(this.asntype);

	}

	@Column(name = "ASNREFERENCE2", length = 50)
	public String getAsnreference2() {
		return this.asnreference2;
	}

	public void setAsnreference2(String asnreference2) {
		this.asnreference2 = asnreference2;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ADDTIME", nullable = false, length = 7)
	public Date getAddtime() {
		return this.addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	@Column(name = "PONO", length = 20)
	public String getPono() {
		return this.pono;
	}

	public void setPono(String pono) {
		this.pono = pono;
	}

	@Column(name = "ADDWHO", length = 35)
	public String getAddwho() {
		return this.addwho;
	}

	public void setAddwho(String addwho) {
		this.addwho = addwho;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDITTIME", nullable = false, length = 7)
	public Date getEdittime() {
		return this.edittime;
	}

	public void setEdittime(Date edittime) {
		this.edittime = edittime;


			this.gAsnHeader.setOperateTime(dateFormat.format(edittime));
			this.glDataDetail.setOperateTime(dateFormat.format(edittime));
			this.glDataDetail.setCreateTimeERP(dateFormat.format(edittime));
			this.glDataDetail.setUpdateTimeERP(dateFormat.format(edittime));
			this.glAsnHerader.setOperatorTime(dateFormat.format(edittime));


	}

	@Column(name = "EDITWHO", length = 35)
	public String getEditwho() {
		return this.editwho;
	}

	public void setEditwho(String editwho) {
		this.editwho = editwho;
	}

	@Column(name = "DELIVERYTERMS", length = 10)
	public String getDeliveryterms() {
		return this.deliveryterms;
	}

	public void setDeliveryterms(String deliveryterms) {
		this.deliveryterms = deliveryterms;
	}

	@Column(name = "NOTES", length = 1000)
	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
		this.gAsnHeader.setRemark(this.notes);
	}

	@Column(name = "DELIVERYTERMSDESCR", length = 200)
	public String getDeliverytermsdescr() {
		return this.deliverytermsdescr;
	}

	public void setDeliverytermsdescr(String deliverytermsdescr) {
		this.deliverytermsdescr = deliverytermsdescr;
	}

	@Column(name = "CUSTOMERID", nullable = false, length = 30)
	public String getCustomerid() {
		return this.customerid;
	}

	public void setCustomerid(String customerid) {
		if (customerid == null || customerid .equals(""))
			customerid="null";

		this.customerid = customerid;
		this.gAsnHeader.setOwnerCode(this.customerid);
		this.glDataDetail.setOwnerCode(this.customerid);
		this.glAsnReturnConform.setOwnerCode(this.customerid);
		this.glAsnReverseReturnAdd.setOwnerCode(this.customerid);
		this.glAsnHerader.setOwnerCode(this.customerid);
	}

	@Column(name = "CREATESOURCE", length = 35)
	public String getCreatesource() {
		return this.createsource;
	}

	public void setCreatesource(String createsource) {
		this.createsource = createsource;
	}

	@Column(name = "BYTRACE_FLAG", length = 1)
	public String getBytraceFlag() {
		return this.bytraceFlag;
	}

	public void setBytraceFlag(String bytraceFlag) {
		this.bytraceFlag = bytraceFlag;
	}

	@Column(name = "SUPPLIERID", length = 30)
	public String getSupplierid() {
		return this.supplierid;
	}

	public void setSupplierid(String supplierid) {
		this.supplierid = supplierid;
	}

	@Column(name = "RESERVE_FLAG", nullable = false, length = 1)
	public String getReserveFlag() {
		return this.reserveFlag;
	}

	public void setReserveFlag(String reserveFlag) {
		this.reserveFlag = reserveFlag;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDISENDTIME", length = 7)
	public Date getEdisendtime() {
		return this.edisendtime;
	}

	public void setEdisendtime(Date edisendtime) {
		this.edisendtime = edisendtime;
	}

	@Column(name = "RECEIVEID", precision = 126, scale = 0)
	public Double getReceiveid() {
		return this.receiveid;
	}

	public void setReceiveid(Double receiveid) {
		this.receiveid = receiveid;
	}

	@Column(name = "SUPPLIER_NAME", length = 400)
	public String getSupplierName() {
		return this.supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	@Column(name = "SUPPLIER_ADDRESS1", length = 400)
	public String getSupplierAddress1() {
		return this.supplierAddress1;
	}

	public void setSupplierAddress1(String supplierAddress1) {
		this.supplierAddress1 = supplierAddress1;
	}

	@Column(name = "SUPPLIER_ADDRESS2", length = 200)
	public String getSupplierAddress2() {
		return this.supplierAddress2;
	}

	public void setSupplierAddress2(String supplierAddress2) {
		this.supplierAddress2 = supplierAddress2;
	}

	@Column(name = "SUPPLIER_ADDRESS3", length = 200)
	public String getSupplierAddress3() {
		return this.supplierAddress3;
	}

	public void setSupplierAddress3(String supplierAddress3) {
		this.supplierAddress3 = supplierAddress3;
	}

	@Column(name = "SUPPLIER_ADDRESS4", length = 200)
	public String getSupplierAddress4() {
		return this.supplierAddress4;
	}

	public void setSupplierAddress4(String supplierAddress4) {
		this.supplierAddress4 = supplierAddress4;
	}

	@Column(name = "SUPPLIER_CITY", length = 50)
	public String getSupplierCity() {
		return this.supplierCity;
	}

	public void setSupplierCity(String supplierCity) {
		this.supplierCity = supplierCity;
	}

	@Column(name = "SUPPLIER_PROVINCE", length = 50)
	public String getSupplierProvince() {
		return this.supplierProvince;
	}

	public void setSupplierProvince(String supplierProvince) {
		this.supplierProvince = supplierProvince;
	}

	@Column(name = "SUPPLIER_ZIP", length = 10)
	public String getSupplierZip() {
		return this.supplierZip;
	}

	public void setSupplierZip(String supplierZip) {
		this.supplierZip = supplierZip;
	}

	@Column(name = "SUPPLIER_COUNTRY", length = 2)
	public String getSupplierCountry() {
		return this.supplierCountry;
	}

	public void setSupplierCountry(String supplierCountry) {
		this.supplierCountry = supplierCountry;
	}

	@Column(name = "SUPPLIER_TEL1", length = 50)
	public String getSupplierTel1() {
		return this.supplierTel1;
	}

	public void setSupplierTel1(String supplierTel1) {
		this.supplierTel1 = supplierTel1;
	}

	@Column(name = "SUPPLIER_FAX", length = 50)
	public String getSupplierFax() {
		return this.supplierFax;
	}

	public void setSupplierFax(String supplierFax) {
		this.supplierFax = supplierFax;
	}

	@Column(name = "SUPPLIER_TEL2", length = 40)
	public String getSupplierTel2() {
		return this.supplierTel2;
	}

	public void setSupplierTel2(String supplierTel2) {
		this.supplierTel2 = supplierTel2;
	}

	@Column(name = "ISSUEPARTYID", length = 30)
	public String getIssuepartyid() {
		return this.issuepartyid;
	}

	public void setIssuepartyid(String issuepartyid) {
		this.issuepartyid = issuepartyid;
	}

	@Column(name = "ISSUEPARTYNAME", length = 400)
	public String getIssuepartyname() {
		return this.issuepartyname;
	}

	public void setIssuepartyname(String issuepartyname) {
		this.issuepartyname = issuepartyname;
	}

	@Column(name = "I_ADDRESS1", length = 400)
	public String getIAddress1() {
		return this.IAddress1;
	}

	public void setIAddress1(String IAddress1) {
		this.IAddress1 = IAddress1;
	}

	@Column(name = "I_ADDRESS2", length = 200)
	public String getIAddress2() {
		return this.IAddress2;
	}

	public void setIAddress2(String IAddress2) {
		this.IAddress2 = IAddress2;
	}

	@Column(name = "I_ADDRESS3", length = 200)
	public String getIAddress3() {
		return this.IAddress3;
	}

	public void setIAddress3(String IAddress3) {
		this.IAddress3 = IAddress3;
	}

	@Column(name = "I_ADDRESS4", length = 200)
	public String getIAddress4() {
		return this.IAddress4;
	}

	public void setIAddress4(String IAddress4) {
		this.IAddress4 = IAddress4;
	}

	@Column(name = "I_CITY", length = 50)
	public String getICity() {
		return this.ICity;
	}

	public void setICity(String ICity) {
		this.ICity = ICity;
	}

	@Column(name = "I_PROVINCE", length = 50)
	public String getIProvince() {
		return this.IProvince;
	}

	public void setIProvince(String IProvince) {
		this.IProvince = IProvince;
	}

	@Column(name = "I_COUNTRY", length = 2)
	public String getICountry() {
		return this.ICountry;
	}

	public void setICountry(String ICountry) {
		this.ICountry = ICountry;
	}

	@Column(name = "I_ZIP", length = 10)
	public String getIZip() {
		return this.IZip;
	}

	public void setIZip(String IZip) {
		this.IZip = IZip;
	}

	@Column(name = "DELIVERYVEHICLETYPE", length = 10)
	public String getDeliveryvehicletype() {
		return this.deliveryvehicletype;
	}

	public void setDeliveryvehicletype(String deliveryvehicletype) {
		this.deliveryvehicletype = deliveryvehicletype;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LASTRECEIVINGTIME", length = 7)
	public Date getLastreceivingtime() {
		return this.lastreceivingtime;
	}

	public void setLastreceivingtime(Date lastreceivingtime) {
		this.lastreceivingtime = lastreceivingtime;
	}

	@Column(name = "EDISENDFLAG", nullable = false, length = 1)
	public String getEdisendflag() {
		return this.edisendflag;
	}

	public void setEdisendflag(String edisendflag) {
		this.edisendflag = edisendflag;
	}

	@Column(name = "BILLINGID", length = 30)
	public String getBillingid() {
		return this.billingid;
	}

	public void setBillingid(String billingid) {
		this.billingid = billingid;
	}

	@Column(name = "BILLINGNAME", length = 400)
	public String getBillingname() {
		return this.billingname;
	}

	public void setBillingname(String billingname) {
		this.billingname = billingname;
	}

	@Column(name = "B_ADDRESS1", length = 400)
	public String getBAddress1() {
		return this.BAddress1;
	}

	public void setBAddress1(String BAddress1) {
		this.BAddress1 = BAddress1;
	}

	@Column(name = "B_ADDRESS2", length = 200)
	public String getBAddress2() {
		return this.BAddress2;
	}

	public void setBAddress2(String BAddress2) {
		this.BAddress2 = BAddress2;
	}

	@Column(name = "B_ADDRESS3", length = 200)
	public String getBAddress3() {
		return this.BAddress3;
	}

	public void setBAddress3(String BAddress3) {
		this.BAddress3 = BAddress3;
	}

	@Column(name = "B_ADDRESS4", length = 200)
	public String getBAddress4() {
		return this.BAddress4;
	}

	public void setBAddress4(String BAddress4) {
		this.BAddress4 = BAddress4;
	}

	@Column(name = "B_CITY", length = 50)
	public String getBCity() {
		return this.BCity;
	}

	public void setBCity(String BCity) {
		this.BCity = BCity;
	}

	@Column(name = "B_PROVINCE", length = 50)
	public String getBProvince() {
		return this.BProvince;
	}

	public void setBProvince(String BProvince) {
		this.BProvince = BProvince;
	}

	@Column(name = "B_COUNTRY", length = 2)
	public String getBCountry() {
		return this.BCountry;
	}

	public void setBCountry(String BCountry) {
		this.BCountry = BCountry;
	}

	@Column(name = "B_ZIP", length = 10)
	public String getBZip() {
		return this.BZip;
	}

	public void setBZip(String BZip) {
		this.BZip = BZip;
	}

	@Column(name = "BILLINGCLASS_GROUP", length = 10)
	public String getBillingclassGroup() {
		return this.billingclassGroup;
	}

	public void setBillingclassGroup(String billingclassGroup) {
		this.billingclassGroup = billingclassGroup;
	}

	@Column(name = "DRIVER", length = 50)
	public String getDriver() {
		return this.driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	@Column(name = "CARRIERCONTACT", length = 400)
	public String getCarriercontact() {
		return this.carriercontact;
	}

	public void setCarriercontact(String carriercontact) {
		this.carriercontact = carriercontact;
	}

	@Column(name = "CARRIERTEL1", length = 50)
	public String getCarriertel1() {
		return this.carriertel1;
	}

	public void setCarriertel1(String carriertel1) {
		this.carriertel1 = carriertel1;
	}

	@Column(name = "SUPPLIER_CONTACT", length = 400)
	public String getSupplierContact() {
		return this.supplierContact;
	}

	public void setSupplierContact(String supplierContact) {
		this.supplierContact = supplierContact;
	}

	@Column(name = "SUPPLIER_MAIL", length = 200)
	public String getSupplierMail() {
		return this.supplierMail;
	}

	public void setSupplierMail(String supplierMail) {
		this.supplierMail = supplierMail;
	}

	@Column(name = "CARRIERTEL2", length = 40)
	public String getCarriertel2() {
		return this.carriertel2;
	}

	public void setCarriertel2(String carriertel2) {
		this.carriertel2 = carriertel2;
	}

	@Column(name = "CARRIERFAX", length = 50)
	public String getCarrierfax() {
		return this.carrierfax;
	}

	public void setCarrierfax(String carrierfax) {
		this.carrierfax = carrierfax;
	}

	@Column(name = "CARRIERMAIL", length = 200)
	public String getCarriermail() {
		return this.carriermail;
	}

	public void setCarriermail(String carriermail) {
		this.carriermail = carriermail;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDISENDTIME2", length = 7)
	public Date getEdisendtime2() {
		return this.edisendtime2;
	}

	public void setEdisendtime2(Date edisendtime2) {
		this.edisendtime2 = edisendtime2;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDISENDTIME3", length = 7)
	public Date getEdisendtime3() {
		return this.edisendtime3;
	}

	public void setEdisendtime3(Date edisendtime3) {
		this.edisendtime3 = edisendtime3;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDISENDTIME4", length = 7)
	public Date getEdisendtime4() {
		return this.edisendtime4;
	}

	public void setEdisendtime4(Date edisendtime4) {
		this.edisendtime4 = edisendtime4;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EDISENDTIME5", length = 7)
	public Date getEdisendtime5() {
		return this.edisendtime5;
	}

	public void setEdisendtime5(Date edisendtime5) {
		this.edisendtime5 = edisendtime5;
	}

	@Column(name = "B_CONTACT", length = 40)
	public String getBContact() {
		return this.BContact;
	}

	public void setBContact(String BContact) {
		this.BContact = BContact;
	}

	@Column(name = "B_MAIL", length = 200)
	public String getBMail() {
		return this.BMail;
	}

	public void setBMail(String BMail) {
		this.BMail = BMail;
	}

	@Column(name = "B_FAX", length = 20)
	public String getBFax() {
		return this.BFax;
	}

	public void setBFax(String BFax) {
		this.BFax = BFax;
	}

	@Column(name = "B_TEL1", length = 40)
	public String getBTel1() {
		return this.BTel1;
	}

	public void setBTel1(String BTel1) {
		this.BTel1 = BTel1;
	}

	@Column(name = "B_TEL2", length = 40)
	public String getBTel2() {
		return this.BTel2;
	}

	public void setBTel2(String BTel2) {
		this.BTel2 = BTel2;
	}

	@Column(name = "I_CONTACT", length = 40)
	public String getIContact() {
		return this.IContact;
	}

	public void setIContact(String IContact) {
		this.IContact = IContact;
	}

	@Column(name = "I_MAIL", length = 200)
	public String getIMail() {
		return this.IMail;
	}

	public void setIMail(String IMail) {
		this.IMail = IMail;
	}

	@Column(name = "I_FAX", length = 20)
	public String getIFax() {
		return this.IFax;
	}

	public void setIFax(String IFax) {
		this.IFax = IFax;
	}

	@Column(name = "I_TEL1", length = 40)
	public String getITel1() {
		return this.ITel1;
	}

	public void setITel1(String ITel1) {
		this.ITel1 = ITel1;
	}

	@Column(name = "I_TEL2", length = 40)
	public String getITel2() {
		return this.ITel2;
	}

	public void setITel2(String ITel2) {
		this.ITel2 = ITel2;
	}

	@Column(name = "H_EDI_01", length = 400)
	public String getHEdi01() {
		return this.HEdi01;
	}

	public void setHEdi01(String HEdi01) {
		this.HEdi01 = HEdi01;
	}

	@Column(name = "H_EDI_02", length = 400)
	public String getHEdi02() {
		return this.HEdi02;
	}

	public void setHEdi02(String HEdi02) {
		this.HEdi02 = HEdi02;
	}

	@Column(name = "H_EDI_03", length = 400)
	public String getHEdi03() {
		return this.HEdi03;
	}

	public void setHEdi03(String HEdi03) {
		this.HEdi03 = HEdi03;
	}

	@Column(name = "H_EDI_04", length = 400)
	public String getHEdi04() {
		return this.HEdi04;
	}

	public void setHEdi04(String HEdi04) {
		this.HEdi04 = HEdi04;
	}

	@Column(name = "H_EDI_05", length = 400)
	public String getHEdi05() {
		return this.HEdi05;
	}

	public void setHEdi05(String HEdi05) {
		this.HEdi05 = HEdi05;
	}

	@Column(name = "H_EDI_06", length = 400)
	public String getHEdi06() {
		return this.HEdi06;
	}

	public void setHEdi06(String HEdi06) {
		this.HEdi06 = HEdi06;
	}

	@Column(name = "H_EDI_07", length = 400)
	public String getHEdi07() {
		return this.HEdi07;
	}

	public void setHEdi07(String HEdi07) {
		this.HEdi07 = HEdi07;
	}

	@Column(name = "H_EDI_08", length = 400)
	public String getHEdi08() {
		return this.HEdi08;
	}

	public void setHEdi08(String HEdi08) {
		this.HEdi08 = HEdi08;
	}

	@Column(name = "H_EDI_09", precision = 18, scale = 8)
	public Double getHEdi09() {
		return this.HEdi09;
	}

	public void setHEdi09(Double HEdi09) {
		this.HEdi09 = HEdi09;
	}

	@Column(name = "H_EDI_10", precision = 18, scale = 8)
	public Double getHEdi10() {
		return this.HEdi10;
	}

	public void setHEdi10(Double HEdi10) {
		this.HEdi10 = HEdi10;
	}

	@Column(name = "USERDEFINE6", length = 400)
	public String getUserdefine6() {
		return this.userdefine6;
	}

	public void setUserdefine6(String userdefine6) {
		this.userdefine6 = userdefine6;
	}

	@Column(name = "ASN_PRINT_FLAG", length = 1)
	public String getAsnPrintFlag() {
		return this.asnPrintFlag;
	}

	public void setAsnPrintFlag(String asnPrintFlag) {
		this.asnPrintFlag = asnPrintFlag;
	}

	@Column(name = "QCSTATUS", length = 2)
	public String getQcstatus() {
		return this.qcstatus;
	}

	public void setQcstatus(String qcstatus) {
		this.qcstatus = qcstatus;
	}

	@Column(name = "RETURN_PRINT_FLAG", length = 1)
	public String getReturnPrintFlag() {
		return this.returnPrintFlag;
	}

	public void setReturnPrintFlag(String returnPrintFlag) {
		this.returnPrintFlag = returnPrintFlag;
	}

	@Column(name = "WAREHOUSEID", length = 30)
	public String getWarehouseid() {
		return this.warehouseid;
	}

	public void setWarehouseid(String warehouseid) {
		this.warehouseid = warehouseid;
		this.gAsnHeader.setWarehouseCode(this.warehouseid);
		this.glDataDetail.setWareHouseCode(this.warehouseid);
		this.glAsnReturnConform.setWarehouseCode(this.warehouseid);
		this.glAsnReverseReturnAdd.setWareHouseCode(this.warehouseid);
		this.glAsnHerader.setWarehouseCode(this.warehouseid);

	}

	@Column(name = "PRIORITY", length = 1)
	public String getPriority() {
		return this.priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	@Column(name = "ZONEGROUP", length = 10)
	public String getZonegroup() {
		return this.zonegroup;
	}

	public void setZonegroup(String zonegroup) {
		this.zonegroup = zonegroup;
	}

	@Column(name = "RELEASESTATUS", length = 1)
	public String getReleasestatus() {
		return this.releasestatus;
	}

	public void setReleasestatus(String releasestatus) {
		this.releasestatus = releasestatus;
	}

	@Column(name = "PACKMATERIALCONSUME", length = 1)
	public String getPackmaterialconsume() {
		return this.packmaterialconsume;
	}

	public void setPackmaterialconsume(String packmaterialconsume) {
		this.packmaterialconsume = packmaterialconsume;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "MEDICALXMLTIME", length = 7)
	public Date getMedicalxmltime() {
		return this.medicalxmltime;
	}

	public void setMedicalxmltime(Date medicalxmltime) {
		this.medicalxmltime = medicalxmltime;
	}

	@Column(name = "SERIALNOCATCH", length = 1)
	public String getSerialnocatch() {
		return this.serialnocatch;
	}

	public void setSerialnocatch(String serialnocatch) {
		this.serialnocatch = serialnocatch;
	}

	@Column(name = "FOLLOWUP", length = 20)
	public String getFollowup() {
		return this.followup;
	}

	public void setFollowup(String followup) {
		this.followup = followup;
	}

	@Column(name = "USERDEFINEA", length = 20)
	public String getUserdefinea() {
		return this.userdefinea;
	}

	public void setUserdefinea(String userdefinea) {
		this.userdefinea = userdefinea;
	}

	@Column(name = "USERDEFINEB", length = 20)
	public String getUserdefineb() {
		return this.userdefineb;
	}

	public void setUserdefineb(String userdefineb) {
		this.userdefineb = userdefineb;
	}

	@Column(name = "ARCHIVEFLAG", nullable = false, length = 1)
	public String getArchiveflag() {
		return this.archiveflag;
	}

	public void setArchiveflag(String archiveflag) {
		this.archiveflag = archiveflag;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ACTUALARRIVETIME", length = 7)
	public Date getActualarrivetime() {
		return this.actualarrivetime;
	}

	public void setActualarrivetime(Date actualarrivetime) {
		this.actualarrivetime = actualarrivetime;
	}

	@Column(name = "SERIALNOIMPORTFLAG", length = 1)
	public String getSerialnoimportflag() {
		return this.serialnoimportflag;
	}

	public void setSerialnoimportflag(String serialnoimportflag) {
		this.serialnoimportflag = serialnoimportflag;
	}

	@Column(name = "USERDEFINE8", length = 50)
	public String getUserdefine8() {
		return this.userdefine8;
	}

	public void setUserdefine8(String userdefine8) {
		this.userdefine8 = userdefine8;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "USERDEFINE7", length = 7)
	public Date getUserdefine7() {
		return this.userdefine7;
	}

	public void setUserdefine7(Date userdefine7) {
		this.userdefine7 = userdefine7;
	}

}